package com.ceba.test.modules.admin.service;

import com.ceba.base.web.service.IBaseService;
import com.ceba.test.modules.admin.dao.WaterPageNumberDao;
import com.ceba.test.modules.admin.entity.GWaterPageNumber;

public class WaterPageNumberService extends IBaseService {

    private WaterPageNumberDao waterPageNumberDao;

    public WaterPageNumberDao getWaterPageNumberDao() {
        return waterPageNumberDao;
    }

    public void setWaterPageNumberDao(WaterPageNumberDao waterPageNumberDao) {
        this.waterPageNumberDao = waterPageNumberDao;
    }

    /**
     * c创建一条记录
     * @param gWaterPageNumber
     * @return
     */
    public boolean addWaterPageNumber(GWaterPageNumber gWaterPageNumber) throws Exception{
      return waterPageNumberDao.addWaterPageNumber(gWaterPageNumber);
    }

    /**
     * 修改记录
     * @param gWaterPageNumber
     * @return
     */
    public boolean updateWaterPageNumber(GWaterPageNumber gWaterPageNumber) throws Exception{
        return waterPageNumberDao.updateWaterPageNumber(gWaterPageNumber);
    }

    /**
     * 根据印章ID查询记录
     * @param stampId
     * @return
     */
    public GWaterPageNumber queryWaterPageNumberByStampId(String stampId) throws Exception{
        return waterPageNumberDao.queryWaterPageNumberByStampId(stampId);
    }

    /**
     * 根据签章ID删除一条记录
     * @param stampId
     * @return
     * @throws Exception
     */
    public boolean deleteWaterPageNumberByStampId(String stampId) throws Exception{
        return waterPageNumberDao.deleteWaterPageNumberByStampId(stampId);
    }
}
